package util

import (
	"gateway/config"
	"go.uber.org/zap"
	"io"
)

func Close(closer io.Closer) {
	err := closer.Close()
	if err != nil {
		config.Logger.Warn("Close error", zap.Error(err))
	}
}
